/*
 * Copyright 2003 ISS.
 * The contents contained in this document may not be reproduced in any
 * form or by any means, without the written permission of ISS, other
 * than for the purpose for which it has been supplied.
 *
 */
package sg.edu.nus.iss.vmcs.maintenance;

import java.awt.Button;

/**
 * This control object monitors the Total Cash Button on the MaintenancePanel and informs
 * the MaintenanceController when it is pressed.
 *
 * @version 3.0 5/07/2003
 * @author Olivo Miotto, Pang Ping Li
 */
public class TotalCashButton extends Button implements ButtonCommand {

	/**
	 * This constructor creates an instance of TotalCashButton.
	 */
	public TotalCashButton(String label) {
		super(label);
	}
	
	/**
	 * This method performs actions in response to the Total Cash Button being pressed.
	 */
	public void execute(MaintenanceController mc) {
		mc.getTotalCash();
	}
}//End of class TotalCashButton